package com.baor.order.service;

import java.util.List;
import com.baor.order.domain.TInvoice;

/**
 * 发票Service接口
 * 
 * @author ruoyi
 * @date 2025-07-18
 */
public interface ITInvoiceService 
{
    /**
     * 查询发票
     * 
     * @param invoiceId 发票主键
     * @return 发票
     */
    public TInvoice selectTInvoiceByInvoiceId(Long invoiceId);

    /**
     * 查询发票列表
     * 
     * @param tInvoice 发票
     * @return 发票集合
     */
    public List<TInvoice> selectTInvoiceList(TInvoice tInvoice);

    public List<TInvoice> selectTInvoiceUnInvoicedList(TInvoice tInvoice);

    public List<TInvoice> selectTInvoiceInvoicedList(TInvoice tInvoice);

//    审核发票
    public int updateTInvoiceStatus(TInvoice tInvoice);

    /**
     * 新增发票
     * 
     * @param tInvoice 发票
     * @return 结果
     */
    public int insertTInvoice(TInvoice tInvoice);

    /**
     * 修改发票
     * 
     * @param tInvoice 发票
     * @return 结果
     */
    public int updateTInvoice(TInvoice tInvoice);

    /**
     * 批量删除发票
     * 
     * @param invoiceIds 需要删除的发票主键集合
     * @return 结果
     */
    public int deleteTInvoiceByInvoiceIds(Long[] invoiceIds);

    /**
     * 删除发票信息
     * 
     * @param invoiceId 发票主键
     * @return 结果
     */
    public int deleteTInvoiceByInvoiceId(Long invoiceId);
}
